package com.newer.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "T_MEMBER")
@KeySequence(value = "seq_member_id",clazz = Integer.class)
public class Member {
    @TableId(value = "ID", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "NAME")
    private String name;

    @TableField(value = "PWD")
    private String pwd;

    @TableField(value = "SEX")
    private String sex;

    @TableField(value = "EDU")
    private Short edu;

    @TableField(value = "HOBBY")
    private String hobby;

    @TableField(value = "INTIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date intime;

    @TableField(value = "BIRTHDAY")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @TableField(value = "CONTENT")
    private String content;




    public static final String COL_ID = "ID";

    public static final String COL_NAME = "NAME";

    public static final String COL_PWD = "PWD";

    public static final String COL_SEX = "SEX";

    public static final String COL_EDU = "EDU";

    public static final String COL_HOBBY = "HOBBY";

    public static final String COL_INTIME = "INTIME";

    public static final String COL_BIRTHDAY = "BIRTHDAY";

    public static final String COL_CONTENT = "CONTENT";
}